<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2017/5/24
 * Time: 16:35
 */

namespace Home\Component;


use Common\Common\Component;
use Home\Model\Wechat\WechatModel;

class WechatComponent extends Component
{
    private $model;

    public function __construct()
    {
        $this->model = new WechatModel();
    }

    public function addWechat($param)
    {
        return $this->model->addWechat($param);
    }

    public function findWechat($openid)
    {
        return $this->model->findWechat($openid);
    }
}